<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>机构端</title>
        <script src="/Public/static/jquery-2.0.3.min.js"></script>
        <script src="/Public/static/layer/layer.js"></script>
        <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	</head>

	<body class="agency_box contentBox pos_rel dpflxr">
		<!-- 1.顶部logo导航 -->
		<include file="head" />

		<!-- 2.垂直导航 -->
		<div class="navColumn">
			<a href="{:U('Mechanism/index')}" <if condition="$cur eq '信息设置'">class="navColumnItem actived dpflxr pos_rel"<else/>class="navColumnItem dpflxr pos_rel"</if> data-type='1'>
				<div class="lineColumn pos_abs"></div>
				<label for="">信息设置</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/department_manage')}" <if condition="$cur eq '部门管理'">class="navColumnItem actived dpflxr pos_rel"<else/>class="navColumnItem dpflxr pos_rel"</if> data-type='2'>
				<div class="lineColumn pos_abs"></div>
				<label for="">部门管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/staff')}" <if condition="$cur eq '员工管理'">class="navColumnItem actived dpflxr pos_rel"<else/>class="navColumnItem dpflxr pos_rel"</if> data-type='3'>
				<div class="lineColumn pos_abs"></div>
				<label for="">员工管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/role_manage')}" <if condition="$cur eq '权限管理'">class="navColumnItem actived dpflxr pos_rel"<else/>class="navColumnItem dpflxr pos_rel"</if> data-type='4'>
				<div class="lineColumn pos_abs"></div>
				<label for="">权限管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/punch_record')}" <if condition="$cur eq '打卡记录'">class="navColumnItem actived dpflxr pos_rel"<else/>class="navColumnItem dpflxr pos_rel"</if> data-type='5'>
				<div class="lineColumn pos_abs"></div>
				<label for="">打卡记录</label>
				<div class="rightArrow">
				</div>
			</a>
		</div>



		<!-- 3.垂直导航分类页面 -->
			
		<!-- 3.2 部门管理 -->
		<div class="contentArea tabPage actived">
			<!-- 3.2.1 部门管理 -->
			<div id="departmentManage">
				<div class="caTitleBox dpflxr">
					<label for="" class="caTitle">部门管理</label>
					<form action="" method="POST">
						<div class="dpflxr">
							<input type="text" class="searchBox" name="name" value="{$name}" placeholder="请输入部门名称"/>
							<div> <button type="submit" class="caBtn searchBtn">查询</button></div>
							<a href="{:U('Mechanism/department_add')}" id="addDepartment" class="caBtn ">新增部门</a>
						</div>
					</form>
				</div>
				
				<div class="caTable card">
					<table border="0" width="100%">
							<tbody>
								<tr>
									<th scope="col" width="11.25%" style="border-top-left-radius: 6px;">部门名称</th>
									<th scope="col" width="11.25%">人数</th>
									<th scope="col" width="11.25%">时间</th>
									<th scope="col" width="11.25%">部门职能</th>
									
									<th scope="col" width="55%" style="border-top-right-radius: 6px;box-sizing: border-box; padding-left: 40%;" >操作</th>
								</tr>
								<volist name="d_list" id="item">
								<tr>
									<td >{$item.name}</td>
									<td>{$item.count}人</td>
									
									<td>{$item.create_time}</td>
									<td>{$item.func}</td>
									<td style="padding-left: 40%;"><a href="{:U('Mechanism/department_add',array('id'=>$item['id']))}">编辑</a><a  href="{:U('Mechanism/department_del',array('id'=>$item['id']))}">删除</a></td>
								</tr>
								</volist>
						
							</tbody>
					</table>
				</div>
			<div class="page">
	            {$_page}
	        </div>
			</div>
			
		</div>
		
	

		
	</body>
</html>
